package com.marsoft.test.entity;

import com.marsoft.test.validation.ValidationGroups;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import java.math.BigDecimal;

/**
 * 入库申请实体类（待处理）
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class WarehouseApplyEntity {
    /**
     * 押品编号（）
     */
    @NotEmpty(groups = {ValidationGroups.SaveMaximumGuaranty.class}, message = "押品编号不能为空")
    private  String  collateralNo;
    /**
     * 入库申请状态（1.待处理2.审批中3.已通过4.已否决5.被退回）
     */
    @NotEmpty(groups = {ValidationGroups.SaveMaximumGuaranty.class}, message = "入库申请状态不能为空")
    private Integer warehouseApplyStatus;
    /**
     * 入库申请-申请编号
     */
    @NotEmpty(groups = {ValidationGroups.SaveMaximumGuaranty.class}, message = "入库申请编号不能为空")
    private String warehouseApplyNo;
    /**
     *押品名称
     */
    @NotEmpty(groups = {ValidationGroups.SaveMaximumGuaranty.class}, message = "押品名称不能为空")
    private String collateralName;
    /**
     *申请类型
     */
    @NotEmpty(groups = {ValidationGroups.SaveMaximumGuaranty.class}, message = "申请类型不能为空")
    private String applicationType;
    /**
     *确认价值
     */
    @NotEmpty(groups = {ValidationGroups.SaveMaximumGuaranty.class}, message = "确认价值不能为空")
    private BigDecimal confirmValue;
    /**
     *申请人
     */
        private String applicationName;

    /**
     *申请机构
     */
    private String applicationOrganization;

    /**
     *当前流程
     */
    private String currentProcess;

    /**
     *当前阶段
     */
    private String currentGeneration;
    /**
     * 逻辑删除（0删除 1.未删除）
     */
    private  String logicDelete;
}
